//
//  FZDrawerManager.swift
//  Pods
//
//  Created by IMM on 2025/4/21.
//

import UIKit

open class FZDrawerManager:NSObject{
    
    required public override init() {}
    
    public static let shared = FZDrawerManager()
    
    internal var drawer: FZMainDrawerViewController?
    
    /// 判断抽屉当前是否显示
    public var isOpen:Bool{
        return self.drawer?.isOpen ?? false
    }
    
    /// 打开右侧抽屉
    public func openRightDrawer() {
        self.drawer?.openRight()
    }
    
    /// 关闭右侧抽屉
    public func closeRightDrawer() {
        self.drawer?.closeRight()
    }
    
    /// 打开左侧抽屉
    public func openLeftDrawer() {
        self.drawer?.openDrawer()
    }
    
    /// 关闭左侧抽屉
    public func closeLeftDrawer() {
        self.drawer?.closeDrawer()
    }
}

